package IO;

import java.io.FileReader;
import java.io.IOException;

public class BIO {

    public static void main(String[] args) throws IOException {
        String fileName ="/Users/huanggang/Projects/java/data-structure/src/IO/hello.txt";
        //打开文件描述符
        FileReader fileReader = new FileReader(fileName);

        char[] chars = new char[20];

        //同步阻塞中
        fileReader.read(chars,0,19);//先读取十个字符试试

        for(char ch:chars){
            System.out.print(ch);
        }
    }
}
